import java.util.ArrayList;
import java.util.Objects;

/**
 * 条文说明
 * @author shun
 */
public class Explanatory {
    private String name;
    private String id;
    private String note;
    private ArrayList<Provision> content;

    public Explanatory() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Explanatory that = (Explanatory) o;
        return name.equals(that.name) && id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, id, note, content);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public ArrayList<Provision> getContent() {
        return content;
    }

    public void setContent(ArrayList<Provision> content) {
        this.content = content;
    }
}
